﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
using System.ComponentModel;

namespace TA.Turbo.Controls
{
	public abstract class BaseUserControl : UserControl
	{
		#region PUBLIC
		#region INIT
		#endregion
		#region EVENTS
		#endregion
		#region PROPS
		public TPage TPage
		{
			get
			{
				if (this._tPage == null)
				{
					this._tPage = this.Page as TPage;
				}
				return this._tPage;
			}
		}
		#endregion
		#region METHODS
		#endregion
		#endregion
		#region INTERNAL
		#region CONST/STATIC
		#endregion
		#region VARS
		TPage _tPage;
		#endregion
		#region PROPS
		#endregion
		#region METHODS
		#region INIT
		#endregion
		#region DATA
		#endregion
		#region HANDLERS
		#endregion
		#endregion
		#endregion
		#region HIDDEN
		[EditorBrowsable(EditorBrowsableState.Never)]
		protected sealed override void OnUnload(EventArgs e)
		{
			base.OnUnload(e);
		}
		[EditorBrowsable(EditorBrowsableState.Never)]
		protected sealed override void OnLoad(EventArgs e)
		{
			base.OnLoad(e);
		}
		[EditorBrowsable(EditorBrowsableState.Never)]
		protected sealed override void OnPreRender(EventArgs e)
		{
			base.OnPreRender(e);
		}
		[EditorBrowsable(EditorBrowsableState.Never)]
		protected sealed override void OnDataBinding(EventArgs e)
		{
			base.OnDataBinding(e);
		}
		[EditorBrowsable(EditorBrowsableState.Never)]
		public new event EventHandler Load;
		[EditorBrowsable(EditorBrowsableState.Never)]
		public new event EventHandler PreRender;
		[EditorBrowsable(EditorBrowsableState.Never)]
		public new event EventHandler DataBinding;
		[EditorBrowsable(EditorBrowsableState.Never)]
		public new event EventHandler Disposed;
		[EditorBrowsable(EditorBrowsableState.Never)]
		public new event EventHandler Unload;

		#endregion

	}
}
